<?xml version="1.0" encoding="UTF-8"?>
<definitions
    xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
    xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
    targetNamespace="Examples">

  <process id="HistoryLevelTest" name="The history checker process." isExecutable="true">

    <startEvent id="start"/>
    <sequenceFlow id="flow1" sourceRef="start" targetRef="init"/>
    <scriptTask id="init" scriptFormat="groovy">
      <script>
        execution.setVariable("myVar", "foo")
      </script>
    </scriptTask>
    <sequenceFlow id="flow2" sourceRef="init" targetRef="task"/>
    <userTask id="task" name="a task"/>
    <sequenceFlow id="flow3" sourceRef="task" targetRef="leave"/>
    <scriptTask id="leave" scriptFormat="groovy">
      <script>
        execution.setVariable("myVar", "bar")
      </script>
    </scriptTask>
    <sequenceFlow id="flow4" sourceRef="leave" targetRef="theEnd"/>
    <endEvent id="theEnd"/>

  </process>

</definitions>
